feat: Implement Freighter Wallet Integration#144
Open
HuiNeng6 wants to merge 2 commits intoANAVHEOBA:mainfrom
Open
feat: Implement Freighter Wallet Integration#144HuiNeng6 wants to merge 2 commits intoANAVHEOBA:mainfrom
HuiNeng6 wants to merge 2 commits intoANAVHEOBA:mainfrom
Conversation
- Define bounty tiers (Critical: \-\, High: \-\, etc.) - Specify in-scope assets (smart contracts, ZK circuits, SDK, frontend) - Establish rules and submission process - Include disclosure policy with 90-104 day timeline - Provide safe harbor legal protection - Add FAQ section for researchers Fixes ANAVHEOBA#94
- Add wallet connection/disconnection functions (lib/wallet.ts) - Add Zustand state management for wallet state (lib/store.ts) - Create wallet UI components: - ConnectButton: Connect/disconnect wallet - WalletInfo: Display connected wallet info - NetworkSelector: Network selection dropdown - InstallPrompt: Prompt to install Freighter - Set up Next.js 14 with TypeScript and Tailwind CSS - Add comprehensive README with usage examples Closes ANAVHEOBA#24
Author
|
📢 Follow-up — Ready for Review (24+ Hours) This Freighter Wallet Integration PR is ready for review. Implementation Complete: Looking forward to your review! 🙏 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements complete Freighter wallet integration for PrivacyLayer frontend, enabling users to connect their Stellar wallets, sign transactions, and manage wallet state.
Closes #24
Changes Made
Wallet Library (
lib/wallet.ts)connectWallet()- Connect to Freighter walletdisconnectWallet()- Disconnect wallet (clear local state)getPublicKeyFromWallet()- Get connected public keysignTransactionWithWallet()- Sign transactions using FreightercheckWalletInstalled()- Check if Freighter is installedsetWalletAllowed()/getWalletAllowedStatus()- Permission managementgetWalletNetwork()- Get current network infoState Management (
lib/store.ts)UI Components
Project Setup
Acceptance Criteria
Testing
npm installinfrontend/directorynpm run devScreenshots
The UI includes: